local thbattle__tianzi_feitian = fk.CreateSkill {

  name = "thbattle__tianzi_feitian",

  tags = { Skill.Compulsory, },

}



thbattle__tianzi_feitian:addEffect(fk.FinishJudge, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return data.card.color == Card.Red and player:hasSkill(thbattle__tianzi_feitian.name) and
        player.room:getCardArea(data.card) == Card.Processing and
        (data.who == player or player:distanceTo(data.who) == 1)
  end,
  on_use = function(self, event, target, player, data)
    player.room:obtainCard(player, data.card, true, fk.ReasonJustMove)
  end
})

return thbattle__tianzi_feitian